package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_ads;

import cn.com.api.mapper.ApiT_adsMapper;

import cn.com.api.service.ApiT_adsService;

/**
 * 
 **/
@Service
public class T_adsServiceImplBase {
	@Autowired
	private ApiT_adsMapper apiT_adsMapper;
    
    // 根据id获取
	public ApiT_ads findT_adsById(Integer id){
		ApiT_ads t_ads = apiT_adsMapper.findT_adsById( id );
		return t_ads;
	}
    
    //查看数据集
	public List<ApiT_ads> findT_adss(){
        List<ApiT_ads> t_adss = apiT_adsMapper.findT_adss();
		return t_adss;
    }
    
	// 添加
	public int insertT_ads(ApiT_ads t_ads){
		int ret_I= apiT_adsMapper.insertT_ads(t_ads);
		return ret_I;
	}

	// 修改
	public int updateT_ads(ApiT_ads t_ads){
		int ret_I= apiT_adsMapper.updateT_ads(t_ads);
		return ret_I;
	}
	
    // 删除
	public int deleteT_ads(Integer id){
		int ret_I= apiT_adsMapper.deleteT_ads( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


